/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 检验记录Entity
 * @author JiangYH
 * @version 2017-04-25
 */
public class WbInspectRecord extends DataEntity<WbInspectRecord> {
	
	private static final long serialVersionUID = 1L;
	private String inspectOrg;		// 检验机构
	private Date inspectDate;		// 检验日期
	private String inspectMan;		// 检验员
	private Date nextInspectDate;		// 下次检验日期
	private String inspectResult;		// 检验结论
	private String inspectDetail;		// 问题描述
	private String remark;		// 备注
	private String tzsbbh;		// 设备ID
	private String sbzcdm;		// 设备注册代码
	
	public WbInspectRecord() {
		super();
	}

	public WbInspectRecord(String id){
		super(id);
	}

	@Length(min=1, max=100, message="检验机构长度必须介于 1 和 100 之间")
	public String getInspectOrg() {
		return inspectOrg;
	}

	public void setInspectOrg(String inspectOrg) {
		this.inspectOrg = inspectOrg;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="检验日期不能为空")
	public Date getInspectDate() {
		return inspectDate;
	}

	public void setInspectDate(Date inspectDate) {
		this.inspectDate = inspectDate;
	}
	
	@Length(min=0, max=100, message="检验员长度必须介于 0 和 100 之间")
	public String getInspectMan() {
		return inspectMan;
	}

	public void setInspectMan(String inspectMan) {
		this.inspectMan = inspectMan;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="下次检验日期不能为空")
	public Date getNextInspectDate() {
		return nextInspectDate;
	}

	public void setNextInspectDate(Date nextInspectDate) {
		this.nextInspectDate = nextInspectDate;
	}
	
	@Length(min=0, max=100, message="检验结论长度必须介于 0 和 100 之间")
	public String getInspectResult() {
		return inspectResult;
	}

	public void setInspectResult(String inspectResult) {
		this.inspectResult = inspectResult;
	}
	
	@Length(min=0, max=1000, message="问题描述长度必须介于 0 和 1000 之间")
	public String getInspectDetail() {
		return inspectDetail;
	}

	public void setInspectDetail(String inspectDetail) {
		this.inspectDetail = inspectDetail;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=100, message="设备ID长度必须介于 0 和 100 之间")
	public String getTzsbbh() {
		return tzsbbh;
	}

	public void setTzsbbh(String tzsbbh) {
		this.tzsbbh = tzsbbh;
	}
	
	@Length(min=0, max=100, message="设备注册代码长度必须介于 0 和 100 之间")
	public String getSbzcdm() {
		return sbzcdm;
	}

	public void setSbzcdm(String sbzcdm) {
		this.sbzcdm = sbzcdm;
	}
	
}